﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LaxFriedrichsModel
{
    public class F
    {
        float row1;

        public float Row1
        {
            get { return row1; }
            set { row1 = value; }
        }
        float row2;

        public float Row2
        {
            get { return row2; }
            set { row2 = value; }
        }
        float row3;

        public float Row3
        {
            get { return row3; }
            set { row3 = value; }
        }
        public void SetRowsByU(U u)
        {
            row1 = u.Row2;
            row2 = u.Row2 * u.Velocity + u.Pressure;
            row3 = u.Velocity * (u.FullEnergy + u.Pressure);
        }

    }
    
}
